package com.qst.system.service.impl;

import com.qst.system.domain.Aptitude;
import com.qst.system.domain.vo.AptitudeVo;
import com.qst.system.mapper.AptitudeMapper;
import com.qst.system.service.IAptitudeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class AptitudeServiceImpl implements IAptitudeService {

    @Autowired
    private AptitudeMapper aptitudeMapper;
    @Override
    public List<AptitudeVo> selectAptitudeList(AptitudeVo aptitude) {
        List<AptitudeVo> aptitudes = aptitudeMapper.selectAptitudeList(aptitude);
        return aptitudes;
    }

    @Override
    public AptitudeVo selectAptitudeById(Long aptId) {
        return aptitudeMapper.selectAptitudeById(aptId);
    }

    @Override
    public int insertAptitude(AptitudeVo aptitude) {
        return aptitudeMapper.insertAptitude(aptitude);
    }

    @Override
    public int updateAptitude(AptitudeVo aptitude) {
        return aptitudeMapper.updateAptitude(aptitude);
    }

    @Override
    public int deleteAptitudeById(Long aptId) {
        return aptitudeMapper.deleteAptitudeById(aptId);
    }

    @Override
    public int deleteAptitudeByIds(Long[] aptIds) {
        return aptitudeMapper.deleteAptitudeByIds(aptIds);
    }

    @Override
    public List<String> selectCompanyNameList() {
        List<String> strings = aptitudeMapper.selectComNameList();
        return strings;
    }

}
